package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.AgencyInfo;
import cn.wolfcode.crm.query.AgencyInfoQueryObject;

import java.util.List;

public interface AgencyInfoMapper {
    void deleteByPrimaryKey(Long id);

    void insert(AgencyInfo record);

    AgencyInfo selectByPrimaryKey(Long id);

    List<AgencyInfo> selectAll();
    List<AgencyInfo> queryAll();

    void updateByPrimaryKey(AgencyInfo record);

    int queryFormCount(AgencyInfoQueryObject qo);

    List<AgencyInfo> queryFormList(AgencyInfoQueryObject qo);

    void changeSate(Long id);
    /*
    * 分组查询机构名称
    * */
    List<String> selectAgencyName();
}